package com.zmn.oms.model.dto.work.modify.amount;

import com.zmn.dms.common.enums.coup.ThirdPlatEnum;
import com.zmn.oms.common.dto.OmsOperator;
import com.zmn.oms.model.bo.orderamount.OrderAmountCalcBO;
import lombok.*;

import javax.validation.constraints.NotNull;

/**
 * 类描述：优惠券优惠
 * @author  lujia
 * @date   2019-03-26 15:33:07
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@ToString(callSuper = true)
public class DiscountCouponDTO extends OmsOperator {

    /**
     * 优惠券券码
     */
    @NotNull
    private String itemCode;

    /**
     * 优惠金额
     */
    @NotNull
    private Integer amount;

    /**
     * 优惠类型 1 全免 2立减 3 折扣
     */
    @NotNull
    private Integer type;

    /**
     * 优惠和金额计算BO
     */
    private OrderAmountCalcBO orderAmountCalcBO;

    /**
     * 第三方券平台
     * @see com.zmn.dms.common.enums.coup.ThirdPlatEnum
     */
    private Integer thirdType;

    private String remark;
}
